package controller;
import java.util.ArrayList;

import model.Customer;
import database.DBCustomer;

/**
 * 
 * @author Patrick
 *
 */

public class CtrCustomer {
	
	private DBCustomer cust;
	
	public CtrCustomer()
	{
		cust = new DBCustomer();
	}
	
	public ArrayList<Customer> getCustomerByPhone(String phoneNum)
	{
		return cust.getCustomerByPhone(phoneNum);
	}
	
	public ArrayList<Customer> getCustomerByName(String name)
	{
		return cust.getCustomerByName(name);
	}
	
	public Customer getCustomerAloneByPhone(String phone)
	{
		return cust.getCustomer(phone);
	}
}
